<script>
function delmn(id)
{
	if(confirm("Bạn có chắc chắn muốn xóa Menu này?"))
		location.href='{$smarty.const.base_admin}?act=add-admin-menu&do=del&id='+id;
}
</script>
 <!-- BEGIN PAGE CONTAINER-->
         <div class="container-fluid">
            <!-- BEGIN PAGE HEADER-->   
            <div class="row-fluid">
               <div class="span12">
                   <!-- BEGIN THEME CUSTOMIZER-->
                   <div id="theme-change" class="hidden-phone">
                       <i class="icon-cogs"></i>
                        <span class="settings">
                            <span class="text">Theme Color:</span>
                            <span class="colors">
                                <span class="color-default" data-style="default"></span>
                                <span class="color-green" data-style="green"></span>
                                <span class="color-gray" data-style="gray"></span>
                                <span class="color-purple" data-style="purple"></span>
                                <span class="color-red" data-style="red"></span>
                            </span>
                        </span>
                   </div>
                   <!-- END THEME CUSTOMIZER-->
                  <!-- BEGIN PAGE TITLE & BREADCRUMB-->
                   <h3 class="page-title">
                     {$nameact}
                   </h3>
                   <!-- END PAGE TITLE & BREADCRUMB-->
               </div>
            </div>
            <!-- END PAGE HEADER-->
            <!-- BEGIN ADVANCED TABLE widget-->
            <div class="row-fluid">
                <div class="span12">
                <!-- BEGIN EXAMPLE TABLE widget-->
                <div class="widget green">
                    <div class="widget-title">
                        <h4><i class="icon-reorder"></i> {$nameact}</h4>
                            <span class="tools">
                                <a href="javascript:;" class="icon-chevron-down"></a>
                                <a href="javascript:;" class="icon-remove"></a>
                            </span>
                    </div>
					{$msg}<br>
                    <div class="widget-body">
                        <form action="" method="post" class="form-horizontal">
						{if $menu.id neq ""}
                            <div class="control-group">
                                <label class="control-label">Menu ID</label>
                                <div class="controls">
                                    <input class="span6" type="text" value="{$menu.id}" disabled />
									<input type=hidden name='id' value='{$menu.id}'>
                                </div>
                            </div>
						{/if}
							<div class="control-group">
                                <label class="control-label">Tên Menu</label>
                                <div class="controls">
                                    <input type="text" class="span6" name="name" value="{$menu.name}" />
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">Code</label>
                                <div class="controls">
                                    <input class="span6 " type="text" name="code" value="{$menu.code}" />
									<input type=hidden name='cur_code' value='{$menu.code}'>
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">Parents</label>
                                <div class="controls">
                                    {$parent}
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">Thứ tự</label>
                                <div class="controls">
                                    <input class="span6 " type="text" name="sort" value="{$menu.sort}" />
                                </div>
                            </div>
							<div class="control-group" style="display:none;">
                                <label class="control-label">Icon</label>
                                <div class="controls">
                                     <i class="{$menu.icon}" style="font-size: 30px;"></i>
										<div class="row the-icons" style="width: 500px; height: 200px; overflow-y: scroll;font-size:15px;">
											<i class="icon-collapse"></i> icon-collapse<br>
                               <i class="icon-collapse-top"></i> icon-collapse-top<br>
                               <i class="icon-expand"></i> icon-expand<br>
                               <i class="icon-eur"></i> icon-eur<br>
                               <i class="icon-euro"></i> icon-euro <span class="muted">(alias)</span><br>
                               <i class="icon-gbp"></i> icon-gbp<br>
                               <i class="icon-usd"></i> icon-usd<br>
                               <i class="icon-dollar"></i> icon-dollar <span class="muted">(alias)</span><br>
                               <i class="icon-inr"></i> icon-inr<br>
                               <i class="icon-rupee"></i> icon-rupee <span class="muted">(alias)</span><br>
                               <i class="icon-jpy"></i> icon-jpy<br>
                               <i class="icon-yen"></i> icon-yen <span class="muted">(alias)</span><br>
                               <i class="icon-cny"></i> icon-cny<br>
                               <i class="icon-renminbi"></i> icon-renminbi <span class="muted">(alias)</span><br>
                               <i class="icon-krw"></i> icon-krw<br>
                               <i class="icon-won"></i> icon-won <span class="muted">(alias)</span><br>
                               <i class="icon-btc"></i> icon-btc<br>
                               <i class="icon-bitcoin"></i> icon-bitcoin <span class="muted">(alias)</span><br>
                               <i class="icon-file"></i> icon-file<br>
                               <i class="icon-file-text"></i> icon-file-text<br>
                               <i class="icon-sort-by-alphabet"></i> icon-sort-by-alphabet<br>
                               <i class="icon-sort-by-alphabet-alt"></i> icon-sort-by-alphabet-alt<br>
                               <i class="icon-sort-by-attributes"></i> icon-sort-by-attributes<br>
                               <i class="icon-sort-by-attributes-alt"></i> icon-sort-by-attributes-alt<br>
                               <i class="icon-sort-by-order"></i> icon-sort-by-order<br>
                               <i class="icon-sort-by-order-alt"></i> icon-sort-by-order-alt<br>
                               <i class="icon-thumbs-up"></i> icon-thumbs-up<br>
                               <i class="icon-thumbs-down"></i> icon-thumbs-down<br>
                               <i class="icon-youtube-sign"></i> icon-youtube-sign<br>
                               <i class="icon-youtube"></i> icon-youtube<br>
                               <i class="icon-xing"></i> icon-xing<br>
                               <i class="icon-xing-sign"></i> icon-xing-sign<br>
                               <i class="icon-youtube-play"></i> icon-youtube-play<br>
                               <i class="icon-dropbox"></i> icon-dropbox<br>
                               <i class="icon-stackexchange"></i> icon-stackexchange<br>
                               <i class="icon-instagram"></i> icon-instagram<br>
                               <i class="icon-flickr"></i> icon-flickr<br>
                               <i class="icon-adn"></i> icon-adn        <br>
                               <i class="icon-bitbucket"></i> icon-bitbucket<br>
                               <i class="icon-bitbucket-sign"></i> icon-bitbucket-sign<br>
                               <i class="icon-tumblr"></i> icon-tumblr<br>
                               <i class="icon-tumblr-sign"></i> icon-tumblr-sign<br>
                               <i class="icon-long-arrow-down"></i> icon-long-arrow-down<br>
                               <i class="icon-long-arrow-up"></i> icon-long-arrow-up<br>
                               <i class="icon-long-arrow-left"></i> icon-long-arrow-left<br>
                               <i class="icon-long-arrow-right"></i> icon-long-arrow-right<br>
                               <i class="icon-apple"></i> icon-apple<br>
                               <i class="icon-windows"></i> icon-windows<br>
                               <i class="icon-android"></i> icon-android<br>
                               <i class="icon-linux"></i> icon-linux<br>
                               <i class="icon-dribbble"></i> icon-dribbble<br>
                               <i class="icon-skype"></i> icon-skype<br>
                               <i class="icon-foursquare"></i> icon-foursquare<br>
                               <i class="icon-trello"></i> icon-trello<br>
                               <i class="icon-female"></i> icon-female<br>
                               <i class="icon-male"></i> icon-male<br>
                               <i class="icon-gittip"></i> icon-gittip<br>
                               <i class="icon-sun"></i> icon-sun<br>
                               <i class="icon-moon"></i> icon-moon<br>
                               <i class="icon-archive"></i> icon-archive<br>
                               <i class="icon-bug"></i> icon-bug<br>
                               <i class="icon-vk"></i> icon-vk<br>
                               <i class="icon-weibo"></i> icon-weibo<br>
                               <i class="icon-renren"></i> icon-renren<br>
                            </div>
									 <input class="span6 " type="hidden" name="icon" value="">
                                </div>
                            </div>
							<div class="control-group">
                                <label class="control-label">Hiển thị</label>
                                <div class="controls">
									<div id="height-text-style-toggle-button">
                                        <input type="checkbox" name='is_show' value='1' {$menu.is_show}>
                                    </div>
                                </div>
                            </div>
						
			  <div class="form-actions">
                      <button type="submit" name="save" class="btn blue" value='Lưu'><i class=" icon-ok"></i> Lưu</button>
                      {if $menu.id neq ""}<button type="button" class="btn" onclick="delmn({$menu.id})"><i class=" icon-remove"></i> Xóa</button>{/if}
					  <button type="button" class="btn" onclick="location.href='{$smarty.const.base_admin}?act=edit-menu-admin'"><i class="icon-chevron-left"></i> Trở về</button>
                                </div>
		</form>
                    </div>
                </div>
                <!-- END EXAMPLE TABLE widget-->
                </div>
            </div>

            <!-- END ADVANCED TABLE widget-->
         </div>
         <!-- END PAGE CONTAINER-->